package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
//审核
public class Shenhe {
    private int shId;//审核id
    private Integer shTabid;//要审核表的id
    private String shShouming;//审核说明
    private Timestamp shTime;//审核时间
    private String shZhuangtai;//审核状态
    private User emp;//员工对象
    private String shenqingPeople;//申请人
    private Timestamp chuangJiantime;//申请时间
    private String shFoujue;//否决原因

    @Id
    @Column(name = "sh_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getShId() {
        return shId;
    }

    public void setShId(int shId) {
        this.shId = shId;
    }

    @Basic
    @Column(name = "sh_tabid", nullable = true)
    public Integer getShTabid() {
        return shTabid;
    }

    public void setShTabid(Integer shTabid) {
        this.shTabid = shTabid;
    }

    @Basic
    @Column(name = "sh_shouming", nullable = true, length = 200)
    public String getShShouming() {
        return shShouming;
    }

    public void setShShouming(String shShouming) {
        this.shShouming = shShouming;
    }

    @Basic
    @Column(name = "sh_time", nullable = true)
    public Timestamp getShTime() {
        return shTime;
    }

    public void setShTime(Timestamp shTime) {
        this.shTime = shTime;
    }

    @Basic
    @Column(name = "sh_zhuangtai", nullable = true, length = 200)
    public String getShZhuangtai() {
        return shZhuangtai;
    }

    public void setShZhuangtai(String shZhuangtai) {
        this.shZhuangtai = shZhuangtai;
    }

    @ManyToOne
    @JoinColumn(name = "emp_id", referencedColumnName = "emp_id")
    public User getEmp() {
        return emp;
    }

    public void setEmp(User emp) {
        this.emp = emp;
    }

    @Column(name = "shenqing_people")
    public String getShenqingPeople() {
        return shenqingPeople;
    }

    public void setShenqingPeople(String shenqingPeople) {
        this.shenqingPeople = shenqingPeople;
    }

    @Column(name = "chuangjian_time")
    public Timestamp getChuangJiantime() {
        return chuangJiantime;
    }

    public void setChuangJiantime(Timestamp chuangJiantime) {
        this.chuangJiantime = chuangJiantime;
    }

    @Column(name = "sh_foujue")
    public String getShFoujue() {
        return shFoujue;
    }

    public void setShFoujue(String shFoujue) {
        this.shFoujue = shFoujue;
    }
}
